package com.mvc.controller;

import com.common.core.BaseController;
import com.jfinal.kit.JsonKit;
import com.mvc.request.ReqStory;
import com.mvc.request.ReqStoryEdit;
import com.mvc.request.ReturnData;
import com.mvc.service.StoryService;
import com.mvc.service.impl.StoryServiceImpl;

/***
 * 事迹
 * 
 * @author Administrator
 * 
 */
public class StoryController extends BaseController {
	StoryService service = new StoryServiceImpl();

	// 根据场馆ID获取场馆生平事迹
	public void querStory() {
		ReqStory req = getRequestObject(ReqStory.class);
		ReturnData<String> data = service.querStory(req);
		renderJson(JsonKit.toJson(data));
	}

	// 根据场馆ID编辑场馆生平事迹
	public void editStory() {
		ReqStoryEdit req = getRequestObject(ReqStoryEdit.class);
		ReturnData<Boolean> data = service.editStory(req);
		renderJson(JsonKit.toJson(data));
	}

}
